package asteroids.model.programs.Expression;

import be.kuleuven.cs.som.annotate.Basic;

/**
* 
* @version 0.3
* @author  Tandan Sunil, Van Deun Luca
*
*/
public class Sine extends UnaryCalculationExpression {
	
	public Sine(int line, int column, Expression e) throws IllegalArgumentException {
		super(line, column, e);
	}

	/**
	 * Returns the value of this sine.
	 */
	@Override @Basic
	public double getValue() {
		return Math.sin(getExpression().getValue());
	}

}
